package com.hxkj.dao.impl;

import com.hxkj.dao.ContentMappingDao;
import com.hxkj.mapper.ContentMappingMapper;
import com.hxkj.domain.po.ContentMapping;
import com.platform.common.domain.result.ResultMessageStruct;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;


/**
* 数据操作实现
*
* @author: chenwei
* @version: 1.0
* @datetime: 2018-09-09 14:27:45
*
*/
@Service("contentMappingDao")
public class ContentMappingDaoImpl implements ContentMappingDao {

    @Resource
    private ContentMappingMapper contentMappingMapper;

    @Override
    public ContentMapping get(Long id) {
        return contentMappingMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<ContentMapping> get(ContentMapping contentMapping) {
        return contentMappingMapper.select(contentMapping);
    }

    @Override
    public int delete(Long id) {
        return contentMappingMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int delete(ContentMapping contentMapping) {
        return contentMappingMapper.delete(contentMapping);
    }

    @Override
    public int save(ContentMapping contentMapping) {
        return contentMappingMapper.insert(contentMapping);
    }

    @Override
    public int update(ContentMapping contentMapping) {
        return contentMappingMapper.update(contentMapping);
    }

    @Override
    public List<ContentMapping> getContentMappingList(ContentMapping contentMapping) {
        return contentMappingMapper.getContentMappingList(contentMapping);
    }

    @Override
    public int saveContentMapping(ContentMapping contentMapping) {
        return contentMappingMapper.saveContentMapping(contentMapping);
    }

    @Override
    public int removeById(ContentMapping contentMapping) {
        return contentMappingMapper.removeById(contentMapping);
    }

    @Override
    public int removeContentByContentName(ContentMapping mapping) {
        return contentMappingMapper.removeContentByContentName(mapping);
    }

    @Override
    public int removeByColumnId(ContentMapping contentMapping) {
        return contentMappingMapper.removeByColumnId(contentMapping);
    }

    @Override
    public List<String> getContentNameList() {
        return contentMappingMapper.getContentNameList();
    }
}
